﻿using TomNet.App.Model.DTO;
using TomNet.SqlSugarCore.Entity;

namespace TomNet.App.Model.DB
{
    /// <summary>
    /// 订单
    /// </summary>
    public class Order : IdentityEntityBase<int>
    {
        /// <summary>
        /// 币种
        /// </summary>
        public ProductType BType { get; set; }
        /// <summary>
        /// 单位数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 商品单位 T/G/K/M/P
        /// </summary>
        public ProductUnit ProductUnit { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public float Price { get; set; }
        /// <summary>
        /// 电费
        /// </summary>
        public string ElectricityFees { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public float SumMoney { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderState State { get; set; }
        /// <summary>
        /// 升级订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 订单创建时间 
        /// </summary>
        public long CreateTime { get; set; }
    }
}
